package cc.rengu.igas.smps.common.util;

/**
 * @author wukefan
 * @version 1.0.0
 * @date 2020/6/22 10:50
 * 核心枚举字段转换
 */
public class CoreTransferUtil {

    /*
     * 证件类型转换
     */
    public static String certTypeTransfer(String certType) {
        //默认身份证
        String transferCertType;
        /**
         * certType
         * 01-身份证
         * 02-军官证
         * 03-护照
         * 04-户口薄
         * 05-士兵证
         * 06-港澳来往内地通行证
         * 07-台湾同胞来往内地通行证
         * 08-临时身份证
         * 09-外国人居留证
         * 10-警官证
         * 99-其它
         */
        /**
         * transferCertType
         *A                             	居民身份证
         *B                             	军官证
         *C                             	解放军文职干部证
         *D                             	警官证
         *E                             	解放军士兵证
         *F                             	其他批文或证明
         *G                             	港澳居民来往内地通行证
         *H                             	台湾居民来往大陆通行证
         *I                             	(外国)护照
         *J                             	(中国)护照
         *K                             	武警文职干部证
         *L                             	武警士兵证
         * M                             	户口簿
         * N                             	对私其他证件
         * O                             	居住证
         * Z                             	其他
         */
        switch (certType) {
            case ("01"):
                transferCertType = "A";
                break;
            case ("02"):
                transferCertType = "B";
                break;
            case ("03"):
                transferCertType = "J";
                break;
            case ("04"):
                transferCertType = "M";
                break;
            case ("05"):
                transferCertType = "E";
                break;
            case ("06"):
                transferCertType = "G";
                break;
            case ("07"):
                transferCertType = "H";
                break;
            case ("08"):
                transferCertType = "N";
                break;
            case ("09"):
                transferCertType = "I";
                break;
            case ("10"):
                transferCertType = "D";
                break;
            case ("99"):
                transferCertType = "Z";
                break;
            default:
                transferCertType = "A";
                break;

        }

        return transferCertType;
    }

}
